<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath()%>'/>	 

<h1>供应商申请管理</h1>
<div style="height:30px" class="f-link">
	<a href="${midContextPath}/newSupplierApply/search.do">回查询页</a>
</div>
<div style="color:red">
	<s:actionerror />
	<s:actionmessage />
	<s:fielderror />
</div>
<br/>
<table class="tb-data" width="100%">	
	<tr><th height="35" colspan="2"  align=center ><h4>公司基本资料</h4></th></tr>
	<tr>
		<th width="20%">供应商申请编号</th>
		<td>${newsupplierapply.supplierID} </td>
	</tr>
	<tr>
		<th>供应商名称</th>
		<td>${newsupplierapply.companyName}</td>
	</tr>
	<tr>
		<th>供应商营业执照注册号</th>
		<td>${newsupplierapply.companyNum}</td>
	</tr>
	
	<tr>
		<th>负责人姓名</th>
		<td>${newsupplierapply.ownerName}</td>
	</tr>
	<tr>
		<th>负责人身分证</th>
		<td>${newsupplierapply.ownerID}</td>
	</tr>
	<tr>
		<th>公司人数</th>
		<td>${newsupplierapply.companyemployee}</td>
	</tr>
	<tr>
		<th>公司资本额</th>
		<td>${newsupplierapply.companycapital}${!empty newsupplierapply.companycapital? '万元' : ''}</td>
	</tr>
	<tr>
		<th>公司成立时间</th>
		<td>${newsupplierapply.companyesttime}</td>
	</tr>
	<tr>
		<th>纳税人性质／发票性质</th>
		<td>${menuTaxInvoice.options[newsupplierapply.taxInvoice].name}</td>
	</tr>
	<tr>
		<th>公司电话</th>
		<td>${newsupplierapply.companyPhone}</td>
	</tr>
	<tr>
		<th>公司传真</th>
		<td>${newsupplierapply.companyFax}</td>
	</tr>
	<tr>
		<th>公司地址</th>
		<td>邮编:${newsupplierapply.companyZip}    地址:${newsupplierapply.companyProvince}${newsupplierapply.companyCity}${newsupplierapply.companyArea}${newsupplierapply.companyAddress}</td>
	</tr>
	<tr>
		<th>公司网址</th>
		<td>${newsupplierapply.companywebsite}</td>
	</tr>
	<tr>
		<th>公司简述</th>
		<td><div style="word-break:break-all;width:100%">${newsupplierapply.companyabout}</div></td>
	</tr>
	<tr><th height="35" colspan="2"  align=center ><h4>申请资料</h4></th></tr>
	<tr>
		<th>联络人姓名</th>
		<td>${newsupplierapply.contactName}</td>
	</tr>
	<tr>
		<th>联络人电话</th>
		<td>${newsupplierapply.contactPhone}</td>
	</tr>
	<tr>
		<th>联络人传真</th>
		<td>${newsupplierapply.contactFax}</td>
	</tr>
	<tr>
		<th>联络人地址</th>
		<td>${newsupplierapply.contactAddress}</td>
	</tr>
	<tr>
		<th>联络人Email</th>
		<td>${newsupplierapply.contactEmail}</td>
	</tr>
	<tr>
		<th>最推荐的强力商品是</th>
		<td><div style="word-break:break-all;width:100%">${newsupplierapply.recommendproduct}</div></td>
	</tr>
	<tr>
		<th>档案明细</th>
		<td>
			<c-rt:forEach items="${nasphotoList }" var="photos">
				<a href="/newsupplierapply/${newsupplierapply.supplierID}/${photos.filename}" target="_blank">${photos.filename} 档案说明:${photos.filedecription} </a><br />
			</c-rt:forEach>
		</td>
	</tr>
	<tr>
		<th>最希望上架的类别是</th>
		<td>
			<c-rt:forEach items="${rootCategories }" var="root">
				<c-rt:if test="${root.id ==newsupplierapply.category}">
					${root.aliasName}
				</c-rt:if>
			</c-rt:forEach>
		</td>
	</tr>
	<tr>
		<th>附选上架的类别</th>
		<td>
			<c-rt:forEach items="${rootCategories }" var="root">
				<c-rt:if test="${root.id ==newsupplierapply.categoryother1}">
					${root.aliasName}
				</c-rt:if>
			</c-rt:forEach><br />
			<c-rt:forEach items="${rootCategories }" var="root">
				<c-rt:if test="${root.id ==newsupplierapply.categoryother2}">
					${root.aliasName}
				</c-rt:if>
			</c-rt:forEach>
		</td>
	</tr>
	<tr>
		<th>其它说明</th>
		<td><div style="word-break:break-all;width:100%">${newsupplierapply.note}</div></td>
	</tr>
	<c:if test="${newsupplierapply.status eq '2' or newsupplierapply.status eq '1' or newsupplierapply.status eq '9'}">

	<tr><th height="35" colspan="2"  align=center ><h4>其它资料</h4></th></tr>
	<tr>
		<th>BO到仓天数</th>
		<td>${newsupplierapply.boToWHDate}${!empty newsupplierapply.boToWHDate? '天' : ''}</td>
	</tr>
	
	<tr>
		<th>采购类别</th>	
		<td><c:if test="${!empty newsupplierapply.boToWHDate}">
				<c-rt:forEach items="${bototype}" var="bototype">
					<c-rt:if test="${bototype ==newsupplierapply.boPoType}">
						${bototype.value}
					</c-rt:if>
				</c-rt:forEach>
			</c:if>
		</td>
	</tr>
	<tr>
		<th>发票抬头</th>
		<td>${newsupplierapply.invoiceTitle}</td>
	</tr>
	<tr>
		<th>发票地址</th>
		<td>${newsupplierapply.invoiceAddress}</td>
	</tr>
	<tr>
		<th>维修窗口</th>
		<td>${newsupplierapply.serviceName}</td>
	</tr>
	
	<tr>
		<th>维修窗口电话口</th>
		<td>${newsupplierapply.servicePhone}</td>
	</tr>
	
	<tr>
		<th>维修窗口传真</th>
		<td>${newsupplierapply.serviceFax}</td>
	</tr>
	
	<tr>
		<th>维修窗口地址</th>
		<td>${newsupplierapply.serviceAddress}</td>
	</tr>
	
	<tr>
		<th>维修窗口Email</th>
		<td>${newsupplierapply.serviceEmail}</td>
	</tr>
	
	<tr>
		<th>维修时间</th>
		<td>${newsupplierapply.serviceHours}</td>
	</tr>
	
	<tr>
		<th>维修说明</th>
		<td><div style="word-break:break-all;width:100%">${newsupplierapply.serviceMemo}</div></td>
	</tr>
	<tr>
		<th>发货联络人</th>
		<td>${newsupplierapply.shipContact}</td>
	</tr>
	<tr>
		<th>发货地址</th>
		<td>${!empty newsupplierapply.shipProvince? '邮编:' : ''} ${newsupplierapply.shipZip}  ${!empty newsupplierapply.shipProvince? '地址:' : ''}  ${newsupplierapply.shipProvince}${newsupplierapply.shipCity}${newsupplierapply.shipArea}${newsupplierapply.shipAddr}</td>
	</tr>
	
	<tr>
		<th>发货联络电话</th>
		<td>${newsupplierapply.shipPhone}</td>
	</tr>
	
	<tr>
		<th>是否自行配送</th>
		<td>
			<c:if test="${!empty newsupplierapply.boToWHDate}">			
				${newsupplierapply.isSelfShip eq 'Y'? '是' : '否'}
			</c:if>
		</td>
	</tr>
	
	<tr>
		<th>是否直退</th>
		<td>
			<c:if test="${!empty newsupplierapply.boToWHDate}">			
				${newsupplierapply.isReturnSupplier eq 'Y'? '是' : '否'}
			</c:if>
		</td>
	</tr>
	
	<tr>
		<th>退（换）货联络窗口</th>
		<td>${newsupplierapply.returnContact}</td>
	</tr>
	
	<tr>
		<th>退（换）货联络窗口电话</th>
		<td>${newsupplierapply.returnPhone}</td>
	</tr>
	
	<tr>
		<th>退（换）貨地址</th>
		<td>${!empty newsupplierapply.returnProvince? '邮编:' : ''} ${newsupplierapply.returnZip}    ${!empty newsupplierapply.returnProvince? '地址:' : ''}${newsupplierapply.returnProvince}${newsupplierapply.returnCity}${newsupplierapply.returnArea}${newsupplierapply.returnAddr}</td>
	</tr>
	
	<tr>
		<th>Group</th>
		<td>${newsupplierapply.groupName}</td>
	</tr>
	
	<tr>
		<th>PaymentTerm</th>
		<td>${menuPaymentTerm.options[newsupplierapply.paymentTerm].name}</td>
	</tr>
	
	<tr>
		<th>币别</th>
		<td>${menuCurrency.options[newsupplierapply.paymentCurrency].name}</td>
	</tr>
	
	<tr>
		<th>Agent</th>
		<td>${newsupplierapply.agent}</td>
	</tr>
	
	<tr>
		<th>区域</th>
		<td>${menuArea.options[newsupplierapply.area].name}</td>
	</tr>
	
	<tr>
		<th>Incoterm</th>
		<td>${menuIncoterm.options[newsupplierapply.incoterm].name}</td>
	</tr>
	<tr>
		<th>是否转单</th>
		<td>
			<c:if test="${!empty newsupplierapply.boToWHDate}">			
				${newsupplierapply.isScm eq 'Y'? '是' : '否'}
			</c:if>
		</td>
	</tr>
	
	<tr>
		<th>开户银行</th>
		<td>${newsupplierapply.bankName}</td>
	</tr>
	
	<tr>
		<th>开户名称</th>
		<td>${newsupplierapply.bankAccountName}</td>
	</tr>
	
	<tr>
		<th>银行账号</th>
		<td>${newsupplierapply.bankAccountNum}</td>
	</tr>
	
	<tr>
		<th>付款银行所在地</th>
		<td>${menuPaymentBankArea.options[newsupplierapply.paymentBankArea].name}</td>
		
	</tr>
	
	<tr>
		<th>审核状态</th>
		<td>${pu:menuOption('NewSupplier.approveStatus', pu:toString(newsupplierapply.status)).name}</td>
	</tr>
	
	<tr>
		<th>审核员－采购部</th>
		<td>${newsupplierapply.approveByPd}</td>
	</tr>
	<tr>
		<th>审核员－PM</th>
		<td>${newsupplierapply.approveByPm}</td>
	</tr>
	<tr>
		<th>建立者</th>
		<td>${newsupplierapply.createUser}</td>
	</tr>
	<tr>
		<th>建立时间</th>
		<td>${newsupplierapply.createDate}</td>
	</tr>
	<tr>
		<th>修改者</th>
		<td>${newsupplierapply.modifyUser}</td>
	</tr>
	<tr>
		<th>修改时间</th>
		<td>${newsupplierapply.modifyDate}</td>
	</tr>
	<tr>
		<th>备注</th>
		<td>${newsupplierapply.memo}</td>
	</tr>
	
	</c:if>
	<c:if test="${newsupplierapply.status eq '0'}">
	<tr>
		<th>审核状态</th>
		<td>${pu:menuOption('NewSupplier.approveStatus', pu:toString(newsupplierapply.status)).name}</td>
	</tr>
	
	<tr>
		<th>审核员－采购部</th>
		<td>${newsupplierapply.approveByPd}</td>
	</tr>
	<tr>
		<th>建立者</th>
		<td>${newsupplierapply.createUser}</td>
	</tr>
	<tr>
		<th>建立时间</th>
		<td>${newsupplierapply.createDate}</td>
	</tr>
	<tr>
		<th>修改者</th>
		<td>${newsupplierapply.modifyUser}</td>
	</tr>
	<tr>
		<th>修改时间</th>
		<td>${newsupplierapply.modifyDate}</td>
	</tr>
	
	</c:if>
</table>
<div style="height:30px" class="f-link">
	<a href="${midContextPath}/newSupplierApply/search.do">回查询页</a>
</div>

